package com.ruoyi.zhgd.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目信息业务对象 n_materiel_project
 *
 * @author cj
 * @date 2023-10-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class NMaterielProjectBo extends BaseEntity {

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 基地编码
     */
    @NotBlank(message = "基地编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String baseCode;

    /**
     * '项目名称'
     */
    @NotBlank(message = "'项目名称'不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 项目金额
     */
    @NotNull(message = "项目金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal money;

    /**
     * '负责人'
     */
    @NotBlank(message = "'负责人'不能为空", groups = { AddGroup.class, EditGroup.class })
    private String chargePerson;

    /**
     * '联系电话'
     */
    @NotBlank(message = "'联系电话'不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tellphone;

    /**
     * '备注'
     */
    @NotBlank(message = "'备注'不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 是否启用，0否，1是
     */
    @NotNull(message = "是否启用，0否，1是不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long enable;

    /**
     * 创建人
     */
    @NotNull(message = "创建人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long creator;

    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date createDate;

    /**
     * 修改人
     */
    @NotNull(message = "修改人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long updater;

    /**
     * 修改时间
     */
    @NotNull(message = "修改时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date updateDate;


}
